governance model to build trust between participants on a shared network.
The creation of a smart contract and its deployment on the blockchain will be
learnt here.
You should complete the installation of Hyperledger Fabric on AWS as also
the installation of Hyperledger Fabric with samples and binaries on the AWS
EC2 instance to run this application.
Blockchain application development
For developing your application, follow these steps:
1. Set up the development environment:
$ cd ~
cd fabric-samples/first-network
sudo docker ps
sudo ./byfn.sh down
sudo docker rm -f $(sudo docker ps -aq)
sudo docker network prune
cd ../wagon && ls
Packaged into one startF abric.sh file, there are a few node.js files
present in the wagon folder, such as enrollAdmin.js, invoke.js,
q uery.js, registerUser.js, and package.json.
2. Fabric client installation:
sudo npm install -g npm@5.3.0
sudo npm update
Notice that the Fabric client 1.3 .0 and Fabric CA client 1.3 0 packages are
installed.
3 . Execute the following command to launch the network:
sudo ./startFabric.sh node
4. Open a new terminal to stream the Docker logs:
$ sudo docker logs -f ca.example.com
This opens the Docker file.
U se node.js script to run, query, and update the records on the Fabric
network.
API Access with SDK